package org.gzc.dao;

import org.apache.ibatis.annotations.Param;
import org.gzc.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    /**
     * 查找指定邮箱用户，password参数可以为null
     */
    User selectUserByEmailAndPassword(@Param("email") String email, @Param("password") String password);

    List<User> selectUserByPaging(Map<String, Object> param);

    /**
     * 获取用户总数量
     */
    int getTotal();
}